Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking Changes:
This PR renames
RIKOLTI_ES_ENDPOINT
toOPENSEARCH_ENDPOINT
- please updateenv.local
anddags/startup.sh
accordingly. We will need to update MWAA'sstartup.sh
file too.Updates:
Adds a docker-compose file to spin up a local dev opensearch instance:
Updates the README with relevant details regarding connecting to either this dev opensearch instance or an AWS hosted instance.
Adds an initialization script
initialize/add_rikolti-stg_index.py
- this script andindex_templates/rikolti_template.py
must be run to initialize this dev opensearch instance, before it can be used with any of the Rikolti record_indexer functions.Non-breaking Removals:
INDEX_RETENTION
andRIKOLTI_ES_ALIAS_STAGE
- you can remove these from yourenv.local
anddags/startup.sh
files. Since we're no longer creating an index per collection per harvest process, we no longer have need for an index retention variable, and we are usingrikolti-stg
as more of a special constant than a variable alias.create_stage_index_task
used to create a new index for a collection, index a collection's documents into it, and assign the rikolti-stg alias to the index.move_index_to_prod
module andindex_to_prod
dag used to assign therikolti-prd
alias to a collection's index.create_collection_index
used to provide a bunch of functions for creating/deleting indices.